package com.mc.service.impl;

import com.mc.VO.STVO;
import com.mc.bean.ST;
import com.mc.dao.Impl.STDaoImpl;
import com.mc.dao.STDao;
import com.mc.service.STService;

import java.util.List;

/**
 * @author zl
 * 团队关系业务逻辑实现类
 */
public class STServiceImpl implements STService {
    STDao stDao = new STDaoImpl();

    @Override
    public List<STVO> findByTeamId(int teamid) {
        return stDao.findByTeamId(teamid);
    }

    @Override
    public List<ST> findBySid(int sid) {
        return stDao.findBySid(sid);
    }

    @Override
    public boolean add(ST st) {
        return stDao.add(st)>0?true:false;
    }

    @Override
    public boolean delete(int teamid, int sid) {
        return stDao.delete(teamid,sid)>0?true:false;
    }

    @Override
    public boolean update(ST st) {
        return stDao.update(st)>0?true:false;
    }
}
